.PHONY:all
all:servercal clientcal

#编译时向代码注入条件编译宏 MySelf=1
#Flag=-DMySelf=1
#编译时指定链接 Jsoncpp 库
Lib=-ljsoncpp
servercal:ServerCal.cc
	g++ -o $@ $^ -std=c++11 $(Lib) $(Flag)
clientcal:ClientCal.cc
	g++ -o $@ $^ -std=c++11 $(Lib) $(Flag)

.PHONY:clean
clean:
	rm -f clientcal servercal